package com.hxb.example.service.impl;

import com.hxb.example.mapper.XxlJobLogglueMapper;
import com.hxb.example.service.XxlJobLogglueService;
import com.hxb.example.entity.XxlJobLogglue;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 *  服务层实现。
 *
 * @author HXB
 * @since 2024-05-08
 */
@Service
public class XxlJobLogglueServiceImpl extends ServiceImpl<XxlJobLogglueMapper, XxlJobLogglue> implements XxlJobLogglueService {

    @Resource
    private XxlJobLogglueMapper xxlJobLogglueMapper;

    @Override
    public void removeOld(Integer jobId, int limit) {
        xxlJobLogglueMapper.removeOld(jobId, limit);
    }
}
